package com.cskaoyan.bean.chaosbean.config.bo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.util.HashMap;

/**
 * @author 楚夏三分
 * @datetime 2022/12/31 10:03
 * @description: TODO:
 */
@Data
public class AdminConfigMallBo {


    private String market_mall_longitude;
    private String market_mall_latitude;
    private String market_mall_address;
    @Length(min = 11,max = 11)
    private String market_mall_phone;
    private String market_mall_qq;
    private String market_mall_name;

    public static HashMap<String,String> getMap(AdminConfigMallBo adminConfigMallBo){
        HashMap<String, String> map = new HashMap<>();
        map.put("market_mall_longitude",adminConfigMallBo.getMarket_mall_longitude());
        map.put("market_mall_latitude",adminConfigMallBo.getMarket_mall_latitude());
        map.put("market_mall_address",adminConfigMallBo.getMarket_mall_address());
        map.put("market_mall_phone",adminConfigMallBo.getMarket_mall_phone());
        map.put("market_mall_qq",adminConfigMallBo.getMarket_mall_qq());
        map.put("market_mall_name",adminConfigMallBo.getMarket_mall_name());

        return map;

    }

    // public static ArrayList<String> getList(){
    //     ArrayList<String> list = new ArrayList<>();
    //     list.add("market_mall_longitude");
    //     list.add("market_mall_latitude");
    //     list.add("market_mall_address");
    //     list.add("market_mall_phone");
    //     list.add("market_mall_qq");
    //     list.add("market_mall_name");
    //
    //     return list;
    // }



}
